package com.fy.exam.service;

import com.fy.core.vo.ApiRest;
import com.fy.exam.dto.ExamCreateDto;
import com.fy.core.vo.ApiRest;
import com.fy.core.dto.PageDto;
import com.fy.core.vo.PageResult;
import com.fy.exam.entity.Exam;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author 
 * @since 2023-06-14
 */
public interface ExamService extends IService<Exam> {

    public ApiRest deleteExam(String examId);

    public ApiRest batchDelete(List<Exam> exams);


    /**
     * 分页+条件查询
     * @param pageDto
     * @return
     */
    public PageResult<Exam> findPage(PageDto<Exam> pageDto);

    /**
     *添加考试
     * @param examCreateDto
     * @return
     */
    public ApiRest save(ExamCreateDto examCreateDto);

    /**
     * 根据id获取要回显的考试对象
     * @param examId
     * @return
     */
    public ApiRest findByExamId(String examId);
    /**
     * 更新考试
     * @param examCreateDto
     * @return
     */
    public ApiRest update(ExamCreateDto examCreateDto);

    /**
     * 获取用户考试列表
     * @param
     * @return
     */
    public ApiRest<List<Exam>> selectMyExams();
}
